<link rel="stylesheet" href="../core/resource/weui/weui.css">
<div class="order-list-page" ng-if="pagedata.op == 'main'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">订单管理</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content order-list' style="margin-top: 4.5rem;">
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active':}" href="javascript:" ng-click="access_json('main','')">全部</a>
        <a ng-class="{'external active':pagedata.ispay == 0}" href="javascript:" ng-click="access_json('main','status=0')">待付款</a>
        <a ng-class="{'external active':pagedata.ispay == 1}" href="javascript:" ng-click="access_json('main','status=1')">已付款</a>
        <a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="access_json('main','status=2')">待取消</a>
        <a ng-class="{'external active':pagedata.status == 3}" href="javascript:" ng-click="access_json('main','status=3')">已取消</a>
        <a ng-class="{'external active':pagedata.status == 5}" href="javascript:" ng-click="access_json('main','status=5')">已完成</a>
    </div>
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" href="" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.order}}</div>
                    </div>
                    <div ng-show="item.ispay==0" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">未付款</div>
                    <div ng-show="item.ispay==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已付款</div>
                    <div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">申请取消</div>
                    <div ng-show="item.status==3" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已取消</div>
                    <div ng-show="item.status==5" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.hotel.title}}
                            <span class="status noremark" style="color:#f60;font-size:0.50rem">{{item.type}}</span>
                        </div>
                    </a>
                    <a href="" class="external" data-nocache="true">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.hotel.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.room.title}}</div>
								<div class="subtitle">{{item.num}}间</div>
                            </div>
							
                            <div class="fui-list-angle">
							<div style="color:#999;font-size:0.55rem"> 入住人：{{item.name}}</div>
							<div style="color:#999;font-size:0.55rem"> 入住时间：{{item.intime}}</div>
                                金额：￥<span class="marketprice">{{item.fee}}</span>
							</div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>1</span> 个订单 实付: <span class="text-danger">￥{{item.fee}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 5 || item.status == 3" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除</div>
					<div ng-show="item.status == 0 && item.ispay == 1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'in','id='+item.id)">确认入住</div>
					<div ng-show="item.status == 2" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">确认取消</div>
					<div ng-show="item.status == 1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'done','id='+item.id)">退房</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-if="pagedata.order == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>